//
//  RootCell.m
//  LNA
//
//  Created by dllo on 16/1/18.
//  Copyright © 2016年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "RootCell.h"

@implementation RootCell

- (void)dealloc
{
    [_imgView release];
    [_lookImg release];
    [_nameLabel release];
    [_titleLabel release];
    [_nameLabel release];
    [_lookLabel release];
    [_pinglunLabel release];
    [super dealloc];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self= [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
//        _imgView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_imgView];
        
        self.lookImg = [[UIImageView alloc] init];
//        _lookImg.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_lookImg];
        
        self.pinglunImg = [[UIImageView alloc] init];
//        _pinglunImg.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_pinglunImg];
        
        self.titleLabel = [[UILabel alloc] init];
//        _titleLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_titleLabel];
        
        self.nameLabel = [[UILabel alloc] init];
//        _nameLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_nameLabel];
        
        self.pinglunLabel = [[UILabel alloc] init];
//        _pinglunLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_pinglunLabel];
        
        self.lookLabel = [[UILabel alloc] init];
//        _lookLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_lookLabel];
        
        
    }
    return self;
    
    
    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _imgView.frame = CGRectMake(10, 5, 100, 80);
    _titleLabel.frame = CGRectMake(130, 15, 230, 30);
    _nameLabel.frame = CGRectMake(130, 50, 100, 15);
    _lookImg.frame = CGRectMake(130, 70, 15, 15);
    _lookLabel.frame = CGRectMake(150, 70, 40, 15);
    _pinglunImg.frame = CGRectMake(205, 70, 15, 15);
    _pinglunLabel.frame = CGRectMake(225, 70, 30, 15);
    
    
    
    
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
